package com.example.interview.bean.tree;

import lombok.Data;

/**
 * @author ：superdyf
 * @date ：Created in 2021/10/11 15:40
 * @description：
 * @modified By：
 */
@Data
public class TreeNode<E extends Comparable<E>> {
    private long hash;
    private E e;
    private int offset=0;
    private int dleft=0;
    private int height=0;
    private TreeNode<E> left;
    private TreeNode<E> right;

    public TreeNode(E e) {
        this.hash = Integer.toUnsignedLong(e.hashCode());
        this.e=e;
    }
}
